﻿using System.Collections.Generic;
using System.Linq;
using Higgs.Web.AtomPub.Models;

namespace Higgs.Web.AtomPub.Demo.Models
{
    public partial class BlogEntities : IBlogContext<Entry, Category, MediaItem>
    {
        public ICollection<Category> GetCategoriesCollection(Entry entry)
        {
            return entry.Categories;
        }

        public ICollection<MediaItem> GetMediaItemCollection(Entry entry)
        {
            return entry.MediaItems;
        }
    }
    
    public partial class Entry : IEntry 
    {
        public string[] Terms { get; set; }
    }
    public partial class Category : ICategory {}
    public partial class MediaItem : IMediaItem {}
}